package com.qiyi.player.core.history.parts
{
   import flash.events.EventDispatcher;
   import com.qiyi.player.core.history.IHistory;
   import com.qiyi.player.user.IUser;
   import com.qiyi.player.core.model.IMovie;
   import com.qiyi.player.core.player.coreplayer.ICorePlayer;
   
   public class BaseHistory extends EventDispatcher implements IHistory
   {
      
      public function BaseHistory(param1:ICorePlayer) {
         super();
         this._holder = param1;
      }
      
      protected var _history:Object = null;
      
      protected var _user:IUser = null;
      
      protected var _movie:IMovie;
      
      protected var _holder:ICorePlayer;
      
      public function getReady() : Boolean {
         return true;
      }
      
      public function load(param1:IUser) : void {
         this._user = param1;
      }
      
      public function destroy() : void {
         this._movie = null;
         this._history = null;
         this._user = null;
      }
      
      public function installMovie(param1:IMovie) : void {
         this._movie = param1;
      }
      
      public function uninstallMovie(param1:IMovie) : void {
         this._movie = null;
      }
      
      public function update(param1:int) : void {
      }
      
      public function flush() : void {
      }
      
      public function getMovieHistoryTime() : int {
         if(this._history)
         {
            return this._history.time * 1000;
         }
         return -1;
      }
      
      public function getMovieHistory() : Object {
         return this._history;
      }
   }
}
